package com.wsseieiei.fireballgame.init;


import com.wsseieiei.fireballgame.Main;
import com.wsseieiei.fireballgame.entity.EntityBall2test;
import com.wsseieiei.fireballgame.entity.EntitySb;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;



public class EntityInit {



    public static final DeferredRegister<EntityType<?>> ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.ENTITIES,

            Main.MOD_ID);



    //生物类型为MONSTER(怪物)，两个字符串要一样比如"sb"

    public static final RegistryObject<EntityType<EntitySb>> SB = ENTITY_TYPES.register("sb",
            () -> EntityType.Builder.of(EntitySb::new, MobCategory.MONSTER).sized(0.8f,1.5f).setTrackingRange(30)
                    .build(new ResourceLocation(Main.MOD_ID, "sb").toString()));
    public static  final RegistryObject<EntityType<EntityBall2test>> BALL2TEST = ENTITY_TYPES.register("ball2test",
            () -> EntityType.Builder.of((EntityType.EntityFactory<EntityBall2test>) EntityBall2test::new,MobCategory.MISC).sized(0.2f,0.2f).setTrackingRange(30)
                    .build(new ResourceLocation(Main.MOD_ID,"ball2test").toString()));
}